package ModelLayer;



public class Discount
{

    private String id;
    private String name;
    private int percentage;

    /**
     * Empty constructor for testing purposes
     */
    
    public Discount()
    {
        id = "";
        name = "";
        percentage = 0;
    }
    
    /**
     * Constructor for object of class Discount
     */
    
    public Discount(String _id, String _name, int _percentage)
    {
      id = _id;
      name = _name;
      percentage = _percentage;
    }
    
    /**
     * Accessor and Mutator methods
     */
    
    public void setId(String _id)
    {
        id = _id;
    }
    
    public String getId()
    {
        return id;
    }
    
    public void setName(String _name)
    {
        name = _name;
    }
    
    public String getName()
    {
        return name;
    }
    
    public void setPercentage(int _percentage)
    {
        percentage = _percentage;
    }
    
    public int getPercentage()
    {
        return percentage;
    }
    
}
